import request from '@/utils/request'

// 查询计划管理列表
export function listPlain(query) {
  return request({
    url: '/business/plain/list',
    method: 'get',
    params: query
  })
}

// 查询计划管理详细
export function getPlain(id) {
  return request({
    url: '/business/plain/' + id,
    method: 'get'
  })
}

// 新增计划管理
export function addPlain(data) {
  return request({
    url: '/business/plain',
    method: 'post',
    data: data
  })
}

// 修改计划管理
export function updatePlain(data) {
  return request({
    url: '/business/plain',
    method: 'put',
    data: data
  })
}

// 删除计划管理
export function delPlain(id) {
  return request({
    url: '/business/plain/' + id,
    method: 'delete'
  })
}

// 查询个人计划
export function queryMyselfPlain(data) {
  return request({
    url: '/business/plain/list/my',
    params: data,
    method: 'get'
  })
}
